#include "../lib/define.h"

#define DEV_8254_MODE_COUNTER0 0x00
#define DEV_8254_MODE_COUNTER1 0x40
#define DEV_8254_MODE_COUNTER2 0x80

#define DEV_8254_MODE_PROGRAMMABLE_ONE_SHOT 0x02
#define DEV_8254_MODE_RATE_GENERATOR 0x04
#define DEV_8254_MODE_SQUARE_WAVE_GENERATOR 0x06
#define DEV_8254_MODE_SOFTWARE_TRIGGERED_STROBE 0x08
#define DEV_8254_MODE_HARDWARE_TRIGGERED_STROBE 0x0A

#define DEV_8254_MODE_BINARY 0x00
#define DEV_8254_MODE_BCD 0x01

void Dev8254SetModeAndCounterValue(BYTE bMode, WORD wVal);
